import request from '@/utils/request'

// 查询回收指南列表
export function listHandbook(query) {
  return request({
    url: '/recycle/handbook/list',
    method: 'get',
    params: query
  })
}

// 查询回收指南详细
export function getHandbook(id) {
  return request({
    url: '/recycle/handbook/' + id,
    method: 'get'
  })
}

// 新增回收指南
export function addHandbook(data) {
  return request({
    url: '/recycle/handbook',
    method: 'post',
    data: data
  })
}

// 修改回收指南
export function updateHandbook(data) {
  return request({
    url: '/recycle/handbook',
    method: 'put',
    data: data
  })
}

// 删除回收指南
export function delHandbook(id) {
  return request({
    url: '/recycle/handbook/' + id,
    method: 'delete'
  })
}
